#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);


}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_yes_clicked()
{
    ui->label->setText("同意");
}

void Widget::on_pushButton_no_clicked()
{
    int width = this->geometry().width();
    int height = this->geometry().height();


    int x = rand()%width;
    int y = rand()%height;

    ui->pushButton_no->move(x,y);
}
